﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Register.aspx.cs" Inherits="Users_Register" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="../App_Themes/AmazeUI-2.1.0/css/amazeui.min.css" rel="stylesheet" />
    <link href="../App_Themes/AmazeUI-2.1.0/css/admin.css" rel="stylesheet" />
    <title>自助注册</title>
    <style type="text/css">
        .header {
            text-align: center;
        }

            .header h1 {
                font-size: 200%;
                color: #333;
                margin-top: 30px;
            }

            .header p {
                font-size: 14px;
            }
    </style>
    <script src="../App_Themes/AmazeUI-2.1.0/js/jquery.min.js"></script>
    <script src="../App_Themes/AmazeUI-2.1.0/js/amazeui.js"></script>
    <script src="../App_Themes/AmazeUI-2.1.0/js/app.js"></script>
</head>
<body>
    <form id="form1" class="am-form" runat="server">
        <div class="header">
            <div class="am-g">
                <h1>湖北汽车工业学院社会考试报名系统</h1>
                <p>
                    自助注册
                    <br />
                    本功能提供给非学校内的学生或其它渠道学生
                    <br />
                    本校学生请勿使用此功能
                </p>
            </div>
            <hr />
        </div>
        <div class="am-g" style="margin-bottom:200px;">
            <div class="am-u-lg-6 am-u-md-8 am-u-sm-centered  ">
                <div class="am-form am-form-horizontal">
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">姓名</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="txtName" runat="server" placeholder="姓名 / Name" required="required" MaxLength="25"></asp:TextBox>
                            <small>请填写您的姓名</small>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">身份证号</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="txtIdcard" runat="server" placeholder="身份证号 / IDCard" required="required" MaxLength="25"
                                pattern="^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$"></asp:TextBox>
                            <small>请填写您的身份证号,如出现错误或已存在请勿再次注册</small>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">性别</label>
                        <div class="am-u-sm-9">
                            <div class="am-btn-group data-am-button">
                                <label class="am-btn am-btn-default am-btn-sm">
                                    <asp:RadioButton ID="rbMan" runat="server" Checked="true" GroupName="rbSex" />
                                    先生
                                </label>
                                <label class="am-btn am-btn-default am-btn-sm">
                                    <asp:RadioButton ID="rbMale" runat="server" GroupName="rbSex" />
                                    女士
                                </label>
                            </div>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">学号</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="txtStudId" runat="server" placeholder="学号" required="required" MaxLength="15"></asp:TextBox>
                            <small>请填写您的学号,学号前请加上您学校的简称字母，如汽院学生20110120123，则学号填写为qy20110120123</small>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">入学年份</label>
                        <div class="am-u-sm-9">
                            <asp:DropDownList data-am-selected="{btnSize: 'sm'}" Style="display: none;" ID="ddlYear" runat="server">                                 
                            </asp:DropDownList>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">班级</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="txtClassName" runat="server" placeholder="班级" required="required" MaxLength="25"></asp:TextBox>
                            <small>请填写所在班级名称</small>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">所在院系</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="txtDeptName" runat="server" placeholder="院系名称 / Name" required="required" MaxLength="25"></asp:TextBox>
                            <small>请填写所在院系</small>
                        </div>
                    </div>

                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">联系方式</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="txtPhone" runat="server" placeholder="联系方式" required="required" MaxLength="25" pattern="^1([0-9]{10})"></asp:TextBox>
                            <small>请填写您的联系方式，方便我们联系到您</small>
                        </div>
                    </div>
                    <div class="am-form-group">
                        <label for="user-name" class="am-u-sm-3 am-form-label">所在学校</label>
                        <div class="am-u-sm-9">
                            <asp:TextBox ID="tbFrom" runat="server" placeholder="所在学校" required="required" MaxLength="25"></asp:TextBox>
                            <small>请填写您目前学籍所在的学校名称</small>
<%--                            <small>选择学校</small>--%>
                        </div>
                    </div>
                    
                    <div class="am-form-group">
                        <div class="am-u-sm-9 am-u-sm-push-3">
                            <asp:Button ID="btnRegister" runat="server" CssClass="am-btn am-btn-primary" Text="注册" OnClick="btnRegister_Click" />
                            <a style="font-size: 15px; line-height: 45px; margin-left: 5px;" href="<%=BSUtility.mainUrl+"Users/UserLogin.aspx"%>">返回登录</a>
                            <asp:Label Text="错误" ID="errorTips" Visible="false" runat="server" ForeColor="Red" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
